public class Adult {
    private String name;
    private int age;
    public GenderEnum gender;
    public static int count;
    public Adult(String name,int age,GenderEnum gender){
        this.name=name;
        this.age=age;
        this.gender=gender;
        count++;
    }
    public Adult(String name,int age){
        this.name=name;
        this.age=age;

        count++;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public GenderEnum getGender() {
        return gender;
    }

    public void setGender(GenderEnum gender) {
        this.gender = gender;
    }
    public void work(){
        System.out.println(getName()+"正在工作");
    }
    @Override
    public String toString() {
        return "Adult{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }
}
